package com.zego.wawaji.ui.center.pay.award;

import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.zego.wawaji.R;
import com.zego.wawaji.ui.dialog.popup.BottomPopup;

/**
 * 首充获取每日娃娃币弹框
 * Created by Su on 2018/3/14.
 */
public class PayGetCoinDialog extends BottomPopup {
    private int awardCoin;

    public PayGetCoinDialog(FragmentActivity activity, int awardCoin) {
        super(activity);
        this.awardCoin = awardCoin;
    }

    @Override
    protected View makeContentView() {
        View inflate = LayoutInflater.from(activity).inflate(R.layout.pay_getcoin_dialog, null);
        TextView tv_remark = (TextView) inflate.findViewById(R.id.tv_remark);
        tv_remark.setText("+" + awardCoin + "娃娃币");

        inflate.findViewById(R.id.btn_submit).setOnClickListener(v -> dismiss());
        inflate.findViewById(R.id.btn_close).setOnClickListener(v -> dismiss());
        return inflate;
    }
}
